package com.dldata.devtools30.entity;

import jakarta.persistence.*;

import java.util.Objects;

@Entity
@Table(name = "devt_zbplan_para")
public class DevtZbplanParaEntity {
    private String id;
    private String planid;
    private String plancode;
    private String paraname;
    private String bz;
    private Integer xh;
    private String paranamezh;
    
    @Id
    @Column(name = "id", nullable = false, length = 64)
    public String getId() {
        return id;
    }
    
    public void setId(String id) {
        this.id = id;
    }
    
    @Basic
    @Column(name = "planid", nullable = true, length = 256)
    public String getPlanid() {
        return planid;
    }
    
    public void setPlanid(String planid) {
        this.planid = planid;
    }
    
    @Basic
    @Column(name = "plancode", nullable = true, length = 256)
    public String getPlancode() {
        return plancode;
    }
    
    public void setPlancode(String plancode) {
        this.plancode = plancode;
    }
    
    @Basic
    @Column(name = "paraname", nullable = true, length = 256)
    public String getParaname() {
        return paraname;
    }
    
    public void setParaname(String paraname) {
        this.paraname = paraname;
    }
    
    @Basic
    @Column(name = "bz", nullable = true, length = 256)
    public String getBz() {
        return bz;
    }
    
    public void setBz(String bz) {
        this.bz = bz;
    }
    
    @Basic
    @Column(name = "xh", nullable = true)
    public Integer getXh() {
        return xh;
    }
    
    public void setXh(Integer xh) {
        this.xh = xh;
    }
    
    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        DevtZbplanParaEntity that = (DevtZbplanParaEntity) o;
        return Objects.equals(id, that.id) && Objects.equals(planid, that.planid) && Objects.equals(plancode, that.plancode) && Objects.equals(paraname, that.paraname) && Objects.equals(bz, that.bz) && Objects.equals(xh, that.xh);
    }
    
    @Override
    public int hashCode() {
        return Objects.hash(id, planid, plancode, paraname, bz, xh);
    }
    
    @Basic
    @Column(name = "paranamezh", nullable = true, length = 256)
    public String getParanamezh() {
        return paranamezh;
    }
    
    public void setParanamezh(String paranamezh) {
        this.paranamezh = paranamezh;
    }
}
